<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<link rel="stylesheet" href="css/bootstrap.min.css">

<body>

    <div>
        <input type="radio" name="box" id="box1" checked>
        <label for="box1">
            <div class="wu">1</div>
        </label>
        <div class="yi">
            <div class="er">元素1</div>
        </div>
        <input type="radio" name="box" id="box2">
        <label for="box2">
            <div class="wu">2</div>
        </label>
        <div class="yi">
            <div class="san">元素2</div>
        </div>
        <input type="radio" name="box" id="box3">
        <label for="box3">
            <div class="wu">3</div>
        </label>
        <div class="yi">
            <div class="si">元素3</div>
        </div>

</body>
<script src="./js/jquery-3.5.1.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<style>
    input[type="radio"],
    .yi {
        display: none;
    }

    input:checked+label+.yi {
        display: block;
    }

    .wu {
        width: 20px;
        height: 20px;
        background-color: #33C8FF;
        color: white;
        text-align: center;
        line-height: 20px;
        margin: 20px;
    }

    .er,
    .san,
    .si {
        width: 100px;
        height: 100px;
        background-color: #1E6D8D;
        color: white;
        position: absolute;
        left: 60px;
        top: 30px;
    }
</style>

</html>